#include<bits/stdc++.h>
using namespace std;
int n,ans;
int v[100005],cnt;
int v2[100005];
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin>>n;
	ans=n;
	for(int i=1;i<=n;i++)
	{
		cin>>v[++cnt];
	}
	sort(v+1,v+cnt+1,greater<int>());
	for(int i=1;i<=n;i++)
	{
		v2[i]=v[i];
	}
	for(int i=n;i>=1;i--)
	{
		int t=v[i];
		if(t>v2[cnt])
		{
			ans--;
			cnt--;
		}
	}
	cout<<ans;
	fclose(stdin);
	fclose(stdout);
	return 0;
}
/*
test1:
5
1 2 3 1 2
ans:
2
test2:
10
136 136 136 2417 136 136 2417 136 136 136
ans:
8
*/
